package com.m;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringAOPDemo
{

    /**
     * @param args
     */
    public static void main(String[] args)
    {
        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();
        ctx.scan("com.m");
        ctx.refresh();
        Business bc = (Business) ctx.getBean("myBusinessClass");
        bc.doSomeOperation();
    }
}
